package com.proba.annotations.hibernate;

import java.util.List;

import org.hibernate.criterion.Restrictions;

import com.proba.annotations.RecepturiBetonDAO;
import com.proba.annotations.pojo.RecepturiBeton;

/**
 * <p>Hibernate DAO layer for RecepturiBetons</p>
 * <p>Generated at Thu Feb 25 19:39:57 CET 2010</p>
 *
 * @author Salto-db Generator v1.0.16 / EJB3 + Hibernate DAO
 * @see http://www.hibernate.org/328.html
 */
public class RecepturiBetonHibernateDAO extends
		AbstractHibernateDAO<RecepturiBeton, Long> implements
		RecepturiBetonDAO {

	/**
	 * Find RecepturiBeton by klasaNaBeton
	 */
	public List<RecepturiBeton> findByKlasaNaBeton(Long klasaNaBeton) {
		return findByCriteria(Restrictions.eq("klasaNaBeton", klasaNaBeton));
	}
	
	/**
	 * Find RecepturiBeton by gotovProizvod
	 */
	public List<RecepturiBeton> findByGotovProizvod(Long gotovProizvod) {
		return findByCriteria(Restrictions.eq("gotovProizvod", gotovProizvod));
	}
	
	/**
	 * Find RecepturiBeton by mbFrakcii
	 */
	public List<RecepturiBeton> findByMbFrakcii(Long mbFrakcii) {
		return findByCriteria(Restrictions.eq("mbFrakcii", mbFrakcii));
	}
	

}
